<?php
namespace App\Module\User\Service;

use App\Constants\Constant;
use Hyperf\Di\Annotation\Inject;
use Qbhy\HyperfAuth\AuthManager;

class HomeService {

    /**
     * @Inject()
     * @var AuthManager $authManager
     */
    private $authManager;

    public function info(){
        $user = $this->authManager->guard(Constant::USER)->user();
        $user->score;
        return $user;
    }
}